﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="product_comment_approve.aspx.cs" Inherits="WeiXinPF.Web.admin.product.product_comment_approve" ValidateRequest="false" %>

<%@ Import Namespace="WeiXinPF.Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>评论管理</title>
      <script type="text/javascript" src="../../scripts/jquery/jquery-1.10.2.min.js"></script>

     <script type="text/javascript" src="../../scripts/jquery/jquery.lazyload.min.js"></script>
    <script type="text/javascript" src="../../scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
    <script type="text/javascript" src="../js/layout.js"></script>
    <script>
        function showimage(url)
        {
            showMask();
            $("#bigimg").attr('src', url);
        }

        function showMask() {
            $("#mask").css("height", $(document).height());
            $("#mask").css("width", $(document).width());
            $("#mask").show();
        }

        function hideMask() {

            $("#mask").hide();
        }

        function checkthisall()
        {
            var checkall = $('#cbcheckall');
            var span = $('#spantext');
            var check = false;
            if (span.text() == "全选") { check = true; span.text("撤销");  $("input").prop("checked", true); }
            else { check = false; span.text("全选"); $("input").prop("checked", false); }
            
            
        }

        function allpass()
        {
            return confirm("确定通过所有未审核的评论么？（包括不在此页面显示的）");
        }
        </script>
    <link href="../../admin/skin/default/style.css" rel="stylesheet" type="text/css" />
    <link href="../../admin/skin/mystyle.css" rel="stylesheet" type="text/css" />
    <link href="../../../admin/css/pagination.css" rel="stylesheet" type="text/css" />
    <link href="../../css/pagination.css" rel="stylesheet" type="text/css" />
    <style>
        .imagethumb {
            width:45px;height:45px;
        }
         .mask {     
            position: absolute; top: 0px; 
            z-index: 100; left: 0px;   
        }
        .maskimage {
            z-index:200;height:70%;width:70%;top:15%;left:15%;position:absolute
        }

        </style>
</head>
<body>
    <form id="form1" runat="server">
        <div id="mask" class="mask" onclick="hideMask();">
            <div id="maskimage" class="maskimage">
                <img id="bigimg"  style="width:100%;height:100%" />
            </div>
        </div>  

        <!--工具栏-->
        <div id="content">
        <div class="toolbar-wrap">
            <div id="floatHead" class="toolbar">
                <div class="l-list">
                    <ul class="icon-list">
                     
                        <li><a class="all" href="javascript:;" id="cbcheckall" onclick="checkthisall();"><i></i><span id="spantext">全选</span></a></li>
                          <li><asp:LinkButton ID="btnpass" runat="server" CssClass="folder" OnClick="btnpass_Click"><i></i><span>通过审核</span></asp:LinkButton></li>
                          <li> <asp:LinkButton ID="btnnopass" runat="server" CssClass="folder" OnClick="btnnopass_Click"><i></i><span>不通过审核</span></asp:LinkButton></li>
                            <li> <asp:LinkButton ID="btnallpass" runat="server" CssClass="folder" OnClientClick="return allpass();" OnClick="allpass_Click"><i></i><span>全部通过</span></asp:LinkButton></li>
                        <%--<li>
                            <asp:LinkButton ID="btnDelete" runat="server" CssClass="del" OnClientClick="return ExePostBack('btnDelete');" OnClick="btnDelete_Click"><i></i><span>删除</span></asp:LinkButton>
                        </li>--%>
                    </ul>
                </div>
                <div class="menu-list">
                    <a>评论状态：</a>
                        <div class="rule-single-select">
                            <asp:DropDownList ID="ddlCategoryId" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCategoryId_SelectedIndexChanged">
                                 <asp:ListItem Text="待审" Value="1"></asp:ListItem>
                                 <asp:ListItem Text="通过" Value="2"></asp:ListItem>
                                 <asp:ListItem Text="未通过" Value="3"></asp:ListItem>
                                 <asp:ListItem Text="所有" Value="4"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                         
                    </div>
                <div class="r-list" style="display:none">
                    <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword"  />
                    <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" OnClick="btnSearch_Click">查询</asp:LinkButton>
                </div>
            </div>
        </div>
        <!--/工具栏-->
           <asp:Repeater ID="rptList1" runat="server" OnItemCommand="rptList_ItemCommand">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                    <tr>
                        <th width="5%">选择</th>
                        <th align="left" width="8%">订单号</th>
                        <th align="left" width="8%">产品名</th>
                        <th align="left" width="8%">规格</th>
                        <th align="left" width="6%">评论人</th>
                        <th align="left" width="5%">评分</th>
                        <th align="left" width="5%">评级</th>
                        <th align="left" width="6%">评论时间</th>
                        <th align="left" width="25%">评论内容</th>
                        <th align="left" width="10%">评论图片</th>
                        <th align="left" width="5%">审核状态</th>
                        <th width="10%">操作</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center">
                         <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Style="vertical-align: middle;" />
                         <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                    </td>
                    <td><%#Eval("OrderID")%></td>
                    <td><%#Eval("productname")%></td>
                    <td><%#Eval("skuname")%></td>
                    <td><%#Eval("Username")%></td>
                    <td>
                        <%# Eval("score") %>
                    </td>
                     <td>
                        <%# Eval("rank") %>
                    </td>
                     <td>
                        <%# Eval("CreateTime") %>
                    </td>
                    <td>
                        <%# Eval("Content") %>
                    </td>
                    <td>
                         <%# Eval("ImagePath") %>
                    </td>
                     <td>
                        <%# Eval("Status") %>
                    </td>
                     <td>
                        <asp:LinkButton CommandArgument='<%#Eval("id")%>' runat="server" Text="通过审核" ID="linkbutton_Pass" OnClick="linkbutton_Pass_Click"/>
                        <asp:LinkButton CommandArgument='<%#Eval("id")%>'  runat="server" Text="未通过审核" ID="linkbutton_unPass" OnClick="linkbutton_unPass_Click"/>
                    </td>
                </tr>
            </ItemTemplate>
              
            <FooterTemplate>
                <%#rptList1.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"6\">暂无记录</td></tr>" : ""%>
            </table>
            </FooterTemplate>
        </asp:Repeater>
        <!--/文字列表-->
        <!--内容底部-->
        <div class="line20"></div>
        <div class="pagelist">
            <div class="l-btns">
                <span>显示</span>
                <asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" 
                     AutoPostBack="True"></asp:TextBox><span>条/页</span>
            </div>
            <div id="PageContent" runat="server" class="default"></div>
        </div>
        <!--/内容底部-->
        </div>



    </form>
</body>
</html>
